import request from './request'

export const getCityData = (address, key) => {
  return request({
    method: 'get',
    url: `/geocode/geo?address=${address}&key=${key}`,
  })
}

export const getIpData = (key) => {
  return request({
    method: 'get',
    url: `/ip?key=${key}`,
  })
}